package com.foreveross.dao;

import java.util.List;

import com.foreveross.vo.HouseUser;
import com.foreveross.vo.HrHouses;
import com.foreveross.vo.HrNewsInfo;
import com.foreveross.vo.Tenement;


public interface HrHouseInfoDAO  {	
	
	public <T extends Object> void save(T entity) throws Exception;
	
	public <T> void remove(T entity) throws Exception;

	public Object findById(Class clazz,String id) throws Exception;
	
	public Object findByIntId(Class clazz,int id) throws Exception;
		
	public <T extends Object> T updateObject(T t) throws Exception;

	public long findHouseListCount(String name, String proType, String proLine,String userId) throws Exception;

	public List<HrHouses> findHouseList(String name, String proType,
			String proLine, int pageIndex, int pageSize,String userId) throws Exception;
	
	public List<HrHouses> findHouseList(String cityId,String userId) throws Exception;

	public void deleteHouse(String id) throws Exception;
	
	public List<HouseUser> findHouseUser(String id) throws Exception;
	
	public List<HrHouses> getCityHouseList(String province)throws Exception;

	public void editIsDomicile(String weixinId, String userId)throws Exception;
	
	public Object findObject(Class clazz,String id)throws Exception;

	public void setTenementHouse(Tenement t, String id)throws Exception;

	public void updateHrHousesProjectId(String hrHousesId, String projectId)throws Exception;

	public List<HrHouses> findHousesListWithOutTenement(String province,String userId) throws Exception;
}